import Vue from 'vue'
import App from './App.vue'

// 全局引入ui
import ElementUI from 'element-ui'

// 全局引入样式
import 'element-ui/lib/theme-chalk/index.css'

// 导入路由
import router from '@/router'

import http from './views/utils/request.js'

// 注册全局组件
import MyChannel from '@/components/my-channel'
Vue.component(MyChannel.name, MyChannel)

Vue.config.productionTip = false
Vue.prototype.$http = http
// 注册组件
Vue.use(ElementUI)

new Vue({
  el: '#app',
  router,
  render: h => h(App)
}).$mount('#app')
